﻿@model PMSMVC.Models.DocTaskCheck

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/My97DatePicker/WdatePicker.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>DocTaskCheck</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.TaskID)
        </div>
        <div class="editor-field">
            @ViewBag.TaskName
        </div>

        @*<div class="editor-label">
            @Html.LabelFor(model => model.CheckTime)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.CheckTime, new { @onclick = "WdatePicker({dateFmt:'yyyy-MM-dd'})" })
            @Html.ValidationMessageFor(model => model.CheckTime)
        </div>
        
        <div class="editor-label">
            @Html.LabelFor(model => model.UserID)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.UserID)
            @Html.ValidationMessageFor(model => model.UserID)
        </div>*@

        <div class="editor-label">
            @Html.LabelFor(model => model.EndTime)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.EndTime, new { @onclick = "WdatePicker({dateFmt:'yyyy-MM-dd'})" })
            @Html.ValidationMessageFor(model => model.EndTime)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Remark)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Remark)
            @Html.ValidationMessageFor(model => model.Remark)
        </div>

        <p>
            <input type="submit" value="任务完成确认" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index", "DocTask", new { projectID = @ViewBag.ProjectID }, null)
</div>
